package com.art.wisdom.api.user;

import com.art.wisdom.model.User;
import com.art.wisdom.util.Result;

/**
 * 
 * @author xiezhiwei
 * @email xiezhiwei0314@126.com
 * @date 2017-08-10
 * 
 */
public interface IUserService {
	
	/**
	 * 根据微信openId获取用户信息
	 * @param openId
	 * @return
	 */
	public Result<User> getUserInfo(String openId);
	
	/**
	 * 根据用户ID获取用户信息
	 * @param userId
	 * @return
	 */
	public Result<User> getUserByIdInfo(String userId);
	
	/**
	 * 增加用户信息
	 * @param user
	 * @return
	 */
	public Result<User> addUserInfo(User user);
}
